<script setup lang="ts">
import MarkdownPreviewer from './components/MarkdownPreviewer.vue'
</script>

<template>
  <div class="app">
    <div class="container">
      <div class="header">
        <h1>Markdown 预览器</h1>
        <p class="tip">在左侧输入或粘贴 Markdown 内容，右侧实时预览</p>
      </div>
      <MarkdownPreviewer />
    </div>
  </div>
</template>

<style>
/* 重置默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

#app {
  height: 100%;
  overflow: hidden;
}
</style>

<style scoped>
.app {
  height: 100%;
  padding: 0px 20px;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.header {
  text-align: center;
  padding: 20px;
  flex-shrink: 0;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #2c3e50, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.tip {
  font-size: 1.1em;
  color: #666;
  margin: 0;
}
</style>
